<jsp:root 
		  xmlns:jsp="http://java.sun.com/JSP/Page" 
          xmlns:stl="http://ns.inria.fr/sewese/semtags/" 
          xmlns:c="http://java.sun.com/jsp/jstl/core#" 
          xmlns:fn="http://java.sun.com/jsp/jstl/functions#"
          version="2.0">

<jsp:output omit-xml-declaration="yes" />
<jsp:output doctype-root-element="html"
     doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
     doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
<jsp:directive.page contentType="text/html;charset=UTF-8" />
<c:if test="${empty applicationScope['defaultEngineWrapper']}">
				<stl:init ontoDir="WEB-INF/data/schemas" annotDir="WEB-INF/data/annotations" ruleDir="WEB-INF/data/rules" sfm="http://www.polytech.unice.fr/semanticfm#"/>
</c:if>	
	<jsp:include page="header.jsp" flush="true">
	    <jsp:param name="titre" value="Artiste : ${param['artiste']}"/>
	</jsp:include>
	<h2>${param['artiste']}</h2>
	
	<div id="col1">
          <div id="col1_content" class="clearfix">
					<stl:for-each-result query="select ?nom ?count WHERE {?x a sfm:Artist. ?x sfm:name '${param['artiste']}'. ?x sfm:tagged ?relatedtag. ?relatedtag sfm:tag ?tag. ?relatedtag sfm:count ?count. ?tag sfm:tagName ?nom.} ORDER BY DESC(?count) LIMIT 20">
						<span class="tag" style="font-size:${count/3+20}px"><a href="artistes.jsp?tag=${stl:encode(nom)}">${nom}</a>&#160; </span>
					</stl:for-each-result>
          <hr/>
         	 <div>
         	 	<stl:for-each-result query="select ?nom ?pic WHERE {?x a sfm:Artist. ?x sfm:name '${param['artiste']}'. ?x sfm:similar ?similar. ?similar sfm:artist ?artist. ?similar sfm:match ?match. ?artist sfm:name ?nom. ?artist sfm:pic ?pic} ORDER BY (?match) LIMIT 10">
         	 		<div class="similar-artist"><a href="artiste.jsp?artiste=${stl:encode(nom)}"><img src="${pic}" height="40px" width="40px"/> ${nom} </a></div>
         	 	</stl:for-each-result>
         	 </div>
          </div>
        </div>
        <div id="col3">
          <div id="col3_content" class="clearfix">
          			<stl:for-each-result query="select ?titre ?pic ?url ?reach WHERE {?x a sfm:Artist. ?x sfm:name '${param['artiste']}'. ?x sfm:album ?album. ?album sfm:albumName ?titre. ?album sfm:url ?url. ?album sfm:pic ?pic. ?album sfm:reach ?reach} ORDER BY (?titre)">
						<li><div class="album"><img class="pochette" src='${pic}' width="50px" height="50px"/><a href="${url}">${titre}</a></div></li>
					</stl:for-each-result>
          
          </div>
           </div>
	
	<jsp:include page="footer.jsp" flush="true"/>
</jsp:root>